﻿using ChainResponsibility.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChainResponsibility
{
    /// <summary>
    /// 审批人基类
    /// </summary>
    public abstract class Approver
    {
        protected Approver NextApprover;
        protected string Name;

        public Approver(string name)
        {
            Name = name;
        }
        public void SetApprover(Approver nextApprover)
        {
            NextApprover = nextApprover;
        }

        public abstract void Operation(PurchaseArgs args);
    }

}
